Computer and Modernization ›› 2011, Vol. 1 ›› Issue (4): 29-31.doi: 10.3969/j.issn.1006-2475.2011.04.009
• 数据库 • Previous Articles Next Articles
SU Qing, LI Zhong-liang, WU Wei-min
Received:
Revised:
Online:
Published:
Abstract: In C# .NET, the commonly method of export the data in the component of DataGridView into Excel uses the Excel’s COM component to achieve it. But because the vision of Excel between the development machine and user’s machine installed maybe different, this method often leads to the phenomenon of incompatible. To solve this problem, the reflection technique is proposed to implement the interaction of C# and Excel. Through the experiment on the computer with different visions of Excel, the results show that this method can solve the problem of version compatibility very well.
Key words: reflection, COM component, Excel
CLC Number:
TP311.131
SU Qing;LI Zhong-liang;WU Wei-min. Research on Method of Export Data into Excel in C#.NET[J]. Computer and Modernization, 2011, 1(4): 29-31.
0 / / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://www.c-a-m.org.cn/EN/10.3969/j.issn.1006-2475.2011.04.009
http://www.c-a-m.org.cn/EN/Y2011/V1/I4/29